package com.mashibing.test.case22.xml.aspect.service;

import org.springframework.stereotype.Service;

@Service
public class MyCalculator implements Calculator {
	@Override
	public Integer add(Integer i, Integer j) throws NoSuchMethodException {
		Integer result = i+j;
		return result;
	}

	@Override
	public Integer sub(Integer i, Integer j) throws NoSuchMethodException {
		Integer result = i-j;
		return result;
	}

	@Override
	public Integer mul(Integer i, Integer j) throws NoSuchMethodException {
		Integer result = i*j;
		return result;
	}

	@Override
	public Integer div(Integer i, Integer j) throws NoSuchMethodException {
		Integer result = i/j;
		return result;
	}

}
